package com.withoutwords.engine.social;

import java.util.ArrayList;

import com.withoutwords.engine.social.listeners.ICurrentUserInfoListener;
import com.withoutwords.engine.social.listeners.ILoginListener;
import com.withoutwords.engine.social.listeners.ISocialFriendListListener;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;

public interface ISocialNetworkController {

	//request login to social network
	void requestLogin(Activity Act,ILoginListener l);
	
	//callback for login request
	boolean onLoginCallback(int requestCode,int resultCode,Intent data);
	
	//share data on social network
	void share(Context context,String sharedata);
	void share(Context context,String sharedata,byte[] bitmap);

	//invite friends..this process includes selecting friends dialog
	void inviteFriends(Context context,String invitation);
	
	//Synchronous read friends
	ArrayList<SocialUser> readFriendList(boolean bGameUsersOnly);
	
	//Asynchronous read friends
	void readFriendList(final ISocialFriendListListener listener,boolean bGameUsersOnly);
	
	boolean isLoggenIn(Activity Act);
	
	void getCurrentUserInfo(final ICurrentUserInfoListener listener);
	
	void logout(Context contex);
}
